#@adminLayout()
#define main()
<div class="jbolt_page" data-key="/demo/imguploader" >
    <div class="jbolt_page_title">
        <h1>拒绝申请</h1>
    </div>
    <div class="jbolt_page_content">
        <div class="row">
            <div class="col-12">

                <form class="form"  id="TurnDownForm" action="/auth/mall/order/return/"   method="POST" onsubmit="return RefreshsubmitForm(this);">

                    <input type="hidden" name="order_return.id"  value="#(order_return.id)">

                    <div class="form-group row" >
                        <label class="col-3 col-form-label">商家:</label>
                        <div class="col-8">
                            <input class="form-control" type="text" data-rule="required"   readonly="readonly" name="order_return.retailer_name" value="#(order_return.retailer_name??)">
                        </div>
                    </div>

                    <div class="form-group row" >
                        <label class="col-3 col-form-label">商品:</label>
                        <div class="col-8">
                            <textarea class="form-control" type="text" data-rule="required"   readonly="readonly" name="order_return.commodity_name" value="#(order_return.commodity_name??)">#(order_return.commodity_name??)</textarea>
                        </div>
                    </div>


                    <div class="form-group row" >
                        <label class="col-3 col-form-label">申请原因:</label>
                        <div class="col-8">
                            <textarea class="form-control" style="height: 80px" type="text" data-rule="required"   readonly="readonly" name="order_return.reason" value="#(order_return.reason??)">#(order_return.reason??)</textarea>
                        </div>
                    </div>


                    <div class="form-group row" >
                        <label class="col-3 col-form-label">申请时间:</label>
                        <div class="col-8">
                            <input  class="form-control"  style="height: 30px" type="text" data-rule="required"   readonly="readonly" name="order_return.time_submit" value="#(MyUtil.get_date(order_return.time_submit??))">
                        </div>
                    </div>


                    <div class="form-group row" >
                        <label class="col-3 col-form-label">拒绝原因:</label>
                        <div class="col-8">
                            <textarea class="form-control" style="height: 80px" type="text" data-rule="required"   name="order_return.discount" ></textarea>
                        </div>
                    </div>




                    <div class="form-group text-center">
                        <button type="submit"   class="btn btn-success" ><i class="fa fa-check mr-2"></i>提交</button>
                    </div>

                </form>
            </div>
        </div>
    </div>
</div>
#end

#define js()
<script>
    function RefreshsubmitForm(formEId){
        var form=getRealJqueryObject(formEId);
        if(FormChecker.check(form)){

            var url=form.action;
            form.ajaxSubmit({
                type:"post",
                url:url,
                success:function(ret) {
                    if (ret.state == "ok") {
                        LayerMsgBox.success(ret.msg, 500,function () {
                            refreshPjaxContainer();
                        });

                    } else {
                        LayerMsgBox.alert(ret.msg, 2);
                    }
                }
            });
        }
        return false;
    }
</script>
#end